<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.xteam.ecsystem.utils.AppConfig"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";

	//获取商品
	String bgiId = request.getParameter("bgiId");
	String bgiName = new String(request.getParameter("bgiName")
			.getBytes("ISO8859_1"), "UTF-8");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>商品管理-商品图片</title>
		<jsp:include page="../../include/base.jsp"></jsp:include>
		<jsp:include page="../../include/common.jsp"></jsp:include>
		<jsp:include page="../../include/baseManage.jsp"></jsp:include>
		<script type="text/javascript">
		var bgiId = "<%=bgiId%>";
		var bgiName = "<%=bgiName%>";
		//产品图像路径
		var __propath='<%=AppConfig.getProductImagePath()%>';
		//磁盘访问虚拟路径
		var __virpath='<%=AppConfig.getVirtualPath()%>';
	</script>
		<style type="text/css">
.pic {
	text-align: left;
	margin: 4px 0 0 4px;
}
</style>
	</head>
	<body>
		<div class="mini-toolbar"
			style="border: 0; font-size: 12px; padding-left: 6px;">
			<!-- 操作面板 -->
			<div class="operatePanel">
				<input class="mini-button" text="刷新" iconCls="icon-btn-refresh"
					plain="false" onclick="GoodsPictureHandler.afresh" />
				<input class="mini-button" text="保存修改" iconCls="icon-save"
					plain="false" onclick="saveSelectedPics()" id="saveChange"/>
				<input class="mini-button" text="批量上传" iconCls="icon-upload"
					plain="false" onclick="GoodsPictureHandler.uploadPicture" />
				<input class="mini-button" text="返回商品列表" iconCls="icon-btn-return"
					plain="false" onclick="GoodsPictureHandler.returnGoods" />
			</div>
		</div>
		<div class="mini-fit" id="goodsPicturePanel">
			<div class="mini-panel" title="商品相册预览及修改"
				style="width: 100%; height: 100%;"
				borderStyle="border-bottom:0px;border-left:0px;border-right:0px;">
				<form id="picForm" method="post">
					<ul id="picList">
					</ul>
				</form>
			</div>
		</div>
	</body>
	<script src="handler/GoodsPictureHandler.js" type="text/javascript"></script>
</html>